<?php
/**
 * Created by PhpStorm.
 * User: 朱杰
 * Date: 2017/3/1
 * Time: 20:58
 */
namespace app\models;

use yii\base\Model;
use yii\web\UploadedFile;

class UploadForm extends Model
{
    public $file;
    public function rules()
    {
        return [
            [["file"],"file",'extensions' => 'jpg, png'],
        ];
    }
}